#
#
CLEANFILES = *~
DISTCLEANFILES = *~

clx_includedir = @prefix@/include/clx

noinst_LTLIBRARIES = libeds.la

SOURCES_common = eds.c eds_types.c eds_mod.c eds_srx.c eds_func.c \
		eds.h eds_p.h eds_types.h xe_form.c \
		eds_UI.c edl_trav.c eds_mtrace.c \
		edexpr.c edl.c edl.h

AM_YFLAGS = -d -t
AM_LFLAGS = --nounistd

if ECM_PARSER

BUILT_SOURCES = parser.c scan_dbg.c scan_nodbg.c

scan_dbg.c: scan.l
	flex $(AM_LFLAGS) -d -o$@ $<

scan_nodbg.c: scan.l
	flex $(AM_LFLAGS) -o$@ $<

PARSER_SOURCES = parser.y

else

PARSER_SOURCES = parser.c

endif

if ECM_DEBUG

SCANNER_SOURCES = scan_dbg.c

else

SCANNER_SOURCES = scan_nodbg.c

endif

INCLUDES = -I../libbase -I../libsr -I../libedl -I../libedb -I../libebc

libeds_la_SOURCES = $(SOURCES_common) $(PARSER_SOURCES) $(SCANNER_SOURCES)

clx_include_HEADERS = ecx.h

EXTRA_DIST = scan_dbg.c scan_nodbg.c scan.l
